package com.lois.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.util.Date;

@Data
public class DownloadData {

//    @ExcelProperty(value = {"主标题", "字符串标题"}, index = 0)
//    private String string;
//    @ExcelProperty(value = {"主标题", "日期标题"}, index = 1)
//    private Date date;
//    @ExcelProperty(value = {"主标题", "数字标题"}, index = 2)
//    private Double doubleData;

    @ExcelProperty(value = {"字符串标题"}, index = 0)
    private String string;

    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = {"日期标题"}, index = 1)
    private Date date;

//    @NumberFormat("#.##%")
    @ExcelProperty(value = {"数字标题"}, index = 3)
    private Double doubleData;
    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;
}
